<div class="panel panel-default panel-intro">
    <div class="panel-heading">

        <ul class="nav nav-tabs" data-field="status">
            <li class="active"><a href="#t-wechat" data-value="" data-toggle="tab">公众号配置</a></li>
            <li><a href="#t-subscription" data-value="" data-toggle="tab">订阅消息配置</a></li>
        </ul>
    </div>

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">

            <div class="alert alert-info-light" style="margin-bottom:10px;">
                <b>温馨提示</b><br>
                如果需要公众号，小程序数据互通，请通过微信开放平台绑定
                <br/>
                否则用户会生成2个账号
            </div>

            <div class="tab-pane fade active in" id="t-wechat">
                <form class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">公众号域名:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-wechat_url" data-rule="required" class="form-control" name="row[wechat_url]" type="text" {notempty name="$row.wechat_url"}value="{$row.wechat_url|htmlentities}"{/notempty}>
                            <div class="text-muted fs-sm">格式：http://你的域名.com</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">活动域名:</label>
                        <div class="col-xs-12 col-sm-8 url">
                            <input id="c-wechat_url1" class="form-control" name="row[wechat_url1]" type="text" {notempty name="$row.wechat_url1"}value="{$row.wechat_url1|htmlentities}"{/notempty}>
<!--                            <input id="c-wechat_url2" class="form-control" name="row[wechat_url2]" type="text" {notempty name="$row.wechat_url2"}value="{$row.wechat_url2|htmlentities}"{/notempty}>-->
<!--                            <input id="c-wechat_url3" class="form-control" name="row[wechat_url3]" type="text" {notempty name="$row.wechat_url3"}value="{$row.wechat_url3|htmlentities}"{/notempty}>-->
<!--                            <input id="c-wechat_url4" class="form-control" name="row[wechat_url4]" type="text" {notempty name="$row.wechat_url4"}value="{$row.wechat_url4|htmlentities}"{/notempty}>-->
<!--                            <div class="text-muted fs-sm">必须添加到公众号JS接口安全域名，支持泛域名，格式：http://你的域名.com，填写后进入主域名会随机跳转该域名，如:http://*.domain.com</div>-->
<!--                            <div class="text-muted fs-sm" style="color: red;">注意:仅添加一级域名到JS域名即可，如:domain.com</div>-->
                        </div>
                    </div>
<!--                    <div class="form-group">-->
<!--                        <label class="control-label col-xs-12 col-sm-2">分享域名:</label>-->
<!--                        <div class="col-xs-12 col-sm-8 url">-->
<!--                            <input id="c-wechat_share1" class="form-control" name="row[wechat_share1]" type="text" {notempty name="$row.wechat_share1"}value="{$row.wechat_share1|htmlentities}"{/notempty}>-->
<!--                            <input id="c-wechat_share2" class="form-control" name="row[wechat_share2]" type="text" {notempty name="$row.wechat_share2"}value="{$row.wechat_share2|htmlentities}"{/notempty}>-->
<!--                            <input id="c-wechat_share3" class="form-control" name="row[wechat_share3]" type="text" {notempty name="$row.wechat_share3"}value="{$row.wechat_share3|htmlentities}"{/notempty}>-->
<!--                            <input id="c-wechat_share4" class="form-control" name="row[wechat_share4]" type="text" {notempty name="$row.wechat_share4"}value="{$row.wechat_share4|htmlentities}"{/notempty}>-->
<!--                            <div class="text-muted fs-sm">必须添加到公众号JS接口安全域名，支持泛域名，设置多个分享域名时随机调用，如:http://*.domain.com</div>-->
<!--                            <div class="text-muted fs-sm" style="color: red;">注意:仅添加一级域名到JS域名即可，如:domain.com</div>-->
<!--                        </div>-->
<!--                    </div>-->
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">AppId:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-wechat_app_id" data-rule="required" class="form-control" name="row[wechat_app_id]" type="text" {notempty name="$row.wechat_app_id"}value="{$row.wechat_app_id|htmlentities}"{/notempty}>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">Secret:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-wechat_secret" data-rule="required" class="form-control" name="row[wechat_secret]" type="text" {notempty name="$row.wechat_secret"}value="{$row.wechat_secret|htmlentities}"{/notempty}>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">微信支付商户号:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-wechat_mchid" data-rule="required" class="form-control" name="row[wechat_mchid]" type="text" {notempty name="$row.wechat_mchid"}value="{$row.wechat_mchid|htmlentities}"{/notempty}>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">微信支付Key:</label>
                        <div class="col-xs-12 col-sm-8">
                            <input id="c-wechat_key" data-rule="required" class="form-control" name="row[wechat_key]" type="text" {notempty name="$row.wechat_key"}value="{$row.wechat_key|htmlentities}"{/notempty}>
                        </div>
                    </div>

                    <input type="hidden" name="type" value="wechat">
                    <div class="form-group layer-footer">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                        </div>
                    </div>
                </form>
            </div>

            {include file="kzvote/config/wechat_subscription" /}


    </div>
</div>
<style>
    .url input{
        margin-bottom: 10px;
    }
    .width50{
        width: 60%;
        margin: 0 auto;
        margin-bottom: 20px;
    }
</style>

